﻿using Rail.Start.Viewer;

namespace Rail.Start.Controller
{
    public class CreateDemoFormCommand: Base.BaseCommand
    {
        public override void Execute(PureMVC.Interfaces.INotification notification)
        {
            DemoForm df = new DemoForm();
            DemoFormMediator dfm = new DemoFormMediator(df);
            Facade.RemoveMediator(dfm.MediatorName);
            Facade.RegisterMediator(dfm);
            df.ShowDialog();
        }
    }
}
